package common

import (
	"context"
	"fmt"
)

// UserServerX 这里提供了UserServer的实现，可以参考默认的两个实现
type UserServerX struct {
}

func (u UserServerX) GetById(c context.Context, r *UserRequest) (*UserReply, error) {
	//return nil, status.Errorf(codes.Unimplemented, "method GetById not implemented")
	fmt.Printf("[GetById] receive req: %v\n", r)
	return &UserReply{Id: r.Id, Name: "哈哈"}, nil
}
func (UserServerX) mustEmbedUnimplementedUserServer() {
}
